package tutor;

import org.lwjgl.util.vector.Vector3f;

public class Wormhole {
	public Vector3f entry;
	public Vector3f exit;
	public Vector3f posDiff;
	public Vector3f rotDiff;
	public Vector3f entryRot;
	public Vector3f exitRot;
	
	//no rotation
	public Wormhole(Vector3f entry, Vector3f exit) {
		this.entry = entry;
		this.exit = exit;
		this.posDiff = Vector3f.add(this.entry, this.exit, null);
		this.rotDiff = new Vector3f(0, 0, 0);
	}
	
	//with rotation
	public Wormhole(Vector3f entry, Vector3f exit, Vector3f entryRot, Vector3f exitRot) {
		this.entry = entry;
		this.exit = exit;
		this.entryRot = entryRot;
		this.exitRot = exitRot;
		this.posDiff = Vector3f.sub(this.exit, this.entry, null);
		this.rotDiff = Vector3f.sub(exitRot, entryRot, null);
	}
	
	public Vector3f getPosDiff() {
		return posDiff;
	}
	
	public Vector3f getRotDiff() {
		return rotDiff;
	}
}
